import { createStore } from 'vuex';
import mutations from './mutations';
import getters from './getters';
import actions from './action';

const state = {
    indexpage: '/home',
    islogin: false,
    isinit: false,
    userinfo: {},
    roles: [],
    content_config: {
        logo1: {
            url: '/static/webconfig/dam/logo1.png'
        },
        logo2: {
            url: '/static/webconfig/dam/logo2.png'
        },
        qrcode: {
            url: '/static/webconfig/dam/qrcode.jpg'
        },
        ico: {
            url: '/static/webconfig/dam/icon.ico'
        }

    },

    repair_types_map: [],

    // [
    //     { electrodecutting: '金属成型' },
    //     { equipmentrust: '设备成型' },
    //     { metalforming: '电极切割' }

    // ],
    service_mode_map: [],

    // [

    //     { doortodoorservice: '上门服务' },
    //     { remoteassistance: '远程协助' }
    // ],

    solution_mode_map: [],
    // [
    //     { manualmaintenance: '手动维修' },
    //     { replacementparts: '更换部件' },
    //     { returntofactory: '返厂' }
    // ],
    user_enterprises: [],
    system_message_priview_data: [],
    system_message_priview_number: 0

};
export default createStore({
    // state: {
    //     user_enterprises: []
    // },
    state,
    // mutations: {
    // },
    mutations,
    modules: {
    },
    getters,
    actions
});
